package com.oneday.ashop.core.entity.book;

import com.oneday.ashop.core.entity.IncIdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * 用户关注
 * User:bob.yang
 * Date 2015/9/1 0001
 */
@Document(collection = "UserAttention")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserAttention extends IncIdEntity<Integer>{
    /**
     * 默认或者关注
     */
    private static final Integer STATUS_DEFAULT = 0;
    /**
     * 取消关注
     */
    private static final Integer STATUS_CANCEL = 1;

    /**
     * 用户id {@link com.oneday.ashop.core.entity.User#id}
     */
    private Integer uid;
    /**
     * 用户关注的用户
     */
    private Integer attentionUid;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 取消关注的时间
     */
    private Date cancelTime;
    /**
     * 添加时间
     */
    private Date addTime;
}
